<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>制作简历</title>
</head>
<style>
*{
    margin:0;
    padding:0;
}
body{
    background-color:#00ccff;
}
h5{
    font-size:2em;
    color:#e5a36d;
    margin-left:30px;
    padding-top:10px;
}
p{
    margin:15px 0 30px 30px;
}
input{
    margin-left:30px;
}
form{
    margin:0 auto;
    background-color:#f0f0c6;
    width:900px;
    height:700px;
    margin-top:10px;
    margin-bottom:20px;
}
form input{
    dispay:inline-block;
    width:800px;
    height:25px;
    margin-bottom:10px;
    padding-left:15px;
}
.text{
    height:200px;
    padding-top:px;
}
textarea{
    dispay:inline-block;
    width:798px;
    margin-left:30px;
    padding:20px 0 0 20px;
    font-family:arial;
}
.sex{
	width:15px;
    height:15px;
}
.submit{
    dispay:inline-block;
    width:850px;
    background-color:#00ccff;
    color:white;
    margin-top:15px;
}
</style>
<body>
<form action="URL" method="post">
    <h5>输入个人信息制作简历</h5>
     <input type="text" placeholder="编号" name="uid" autofocus>
    <input type="text" placeholder="别名" name="bieming">
 
    <input type="text" placeholder="姓名" name="xingming">
 <br>
    <lable for="radio">
       	<input type="radio" name="xingbie" value="男"/ class="sex">男
        <input type="radio" name="xingbie" value="女" class="sex"/>女
    </lable>
    <input type="text" placeholder="生日" name="shengri">
    <input type="text" placeholder="身高" name="shengao">
    <input type="text" placeholder="体重" name="tizhong">
    <input type="text" placeholder="视力" name="shili">
    <input type="text" placeholder="婚姻" name="hunyin">
    <input type="text" placeholder="民族" name="minzu">
    <input type="text" placeholder="政治面貌" name="mianmao">
    <br>
    <textarea name="xxx"  id="" cols="111" rows="8"
              placeholder="个人宣言" name="xuanyan"></textarea>
    <br>
    <input class="submit" type="submit" value="提交">
</form>

<?php
if(isset($_POST["submit"])&&$_POST["submit"]=="提交"){
	$uid=$_POST["uid"];
	$bieming=$_POST["bieming"];
	$xingming=$_POST["xingming"];
	$xingbie=$_POST["xingbie"];
	$shengri=$_POST["shengri"];
	$shengao=$_POST["shengao"];
	$tizhong=$_POST["tizhong"];
	$shili=$_POST["shili"];
	$hunyin=$_POST["hunyin"];
	$minzu=$_POST["minzu"];
	$mianmao=$_POST["mianmao"];
	$xuanyan=$_POST["xuanyan"];
	$insertsql="insert into student(uid,bieming,xingming,xingbie,shengri,shengao,tizhong,shili,minzu,mianmao,xuanyan,hunyin)
	value('$uid','$bieming','$xingming','$xingbie','$shengri','$shengao','$tizhong','$shili','$minzu','$mianmao','$xuanyan','$hunyin')";
	@mysql_query($insertsql) or die("添加个人基本失败:".mysql_error()."<br/>");
	echo "<script>alert('添加个人基本资料成功!');</script>";
}
?>
</body>
</html>